<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;


/**
 * Game模型
 */
class PlanProgramme extends ModelBase
{

    protected $insert = ['create_time'];




    /**
     * 时间自动完成
     */
    public function setCreateTimeAttr()
    {

        return TIME_NOW;
    }



    /**
     * 连彩种表
     */
    public function lottery(){
        return $this->belongsTo('Lottery','lottery_id','id');
    }

    /**
     * 连玩法表
     */
    public function play(){
        return $this->belongsTo('LotteryPlay','play_id','id');
    }
    /**
     * 连号码组表
     */
    public function bets(){
        return $this->belongsTo('PlanUserNumber','number_id','id');
    }
    /**
     * 连倍投表
     */
    public function doubule(){
        return $this->belongsTo('PlanUserThrow','throw_id','id');
    }


}
